﻿/**
 * Proyecto: Cognitum
 * Global IT Services 2008
 * @author
 */
Cognitum.Polizas.Auto.Editor = Ext.extend(Karma.EBCard, {

    initComponent: function(){
        Ext.apply(this, {
            sections: [{
                title: 'Datos del Auto',
                items: [{
                    fieldLabel: 'Inciso',
                    name: 'Inciso'
                }, {
                    fieldLabel: 'Identificador',
                    name: 'Identificador',
                    allowBlank: true
                }, {
                    fieldLabel: 'Serie',
                    name: 'Serie'
                }, {
                    fieldLabel: 'Motor',
                    name: 'Motor'
                }, {
                    fieldLabel: 'Placas',
                    name: 'Placas'
                }, {
                    fieldLabel: 'Conductor Habitual',
                    name: 'ConductorHabitual'
                }, {
                    fieldLabel: 'Marca',
                    name: 'Marca',
                    xtype: 'entity.link',
                    entityName: 'Marcas'
                }, {
                    fieldLabel: 'Modelo',
                    name: 'Modelo'
                }, {
                    fieldLabel: 'Versión',
                    name: 'Version'
                }, {               
                    fieldLabel: 'Prima',
                    xtype: 'numberfield',
                    name: 'Prima',
                    vtype: 'numericMask'                    
                }, {
                    fieldLabel: 'Beneficiario Preferente',
                    name: 'BeneficiarioPreferente',
                    entityName: 'ContactoSimple',
                    xtype: 'entity.link',
                    allowBlank: true
                }, {
                    fieldLabel: 'Poliza',
                    name: 'Poliza',
                    xtype: 'entity.link',
                    entityName: 'Polizas',
                    disabled: true
                }, {
                    fieldLabel: 'Endoso Alta',
                    name: 'EndosoAlta',
                    xtype: 'entity.link',
                    entityName: 'Endosos',
                    disabled: true
                }, {
                    fieldLabel: 'Endoso Baja',
                    name: 'EndosoBaja',
                    xtype: 'entity.link',
                    entityName: 'Endosos',
                    disabled: true
                }, {
                    fieldLabel: 'Estatus',
                    name: 'Estatus',
                    xtype: 'enum.combo',
                    enumName: 'Cognitum.Dominio.Polizas.EstatusBienAseguradoEnum',
                    disabled: true
                }]
            }, {
                xtype: 'sec.editor',
                title: 'Seguridad'
            }, {
                xtype: 'aud.editor',
                title: 'Auditoria'
            }]
        });
        Cognitum.Polizas.Auto.Editor.superclass.initComponent.apply(this, arguments);
    }
    
});

Ext.reg('pol.autObj.editor', Cognitum.Polizas.Auto.Editor);
